﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FloorManager.aspx.cs" Inherits="Stock_FloorManager" %>
<%@ Import Namespace="WX.WMS.DataModel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>仓库区域层信息维护</title>
 <style type="text/css">
    body,td,th {
	font-size: 12px;
}
    
    </style>
        <style type="text/css">
<!--

.lbg2 {
	BACKGROUND-IMAGE: url(../images/line.gif); BACKGROUND-REPEAT: repeat-x
}
.mc {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; WORD-BREAK: break-all; LINE-HEIGHT: 20px; PADDING-TOP: 0px
}
.t3 {
	FONT-WEIGHT: bolder; FONT-SIZE: 12px; MARGIN-LEFT: 15px; COLOR: #003473; margin-down: -20px
}
.mc1 {	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; WORD-BREAK: break-all; LINE-HEIGHT: 20px; PADDING-TOP: 0px
}
-->
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:0 auto; text-align:center;">
        <table style="width: 862px; height: 193px">
            <tr>

                <td style=" height: 105px">
                    <div style="border-right: #a4d5e3 1px solid; border-top: #a4d5e3 1px solid; background: url(../images/content_bg1.gif) repeat-x 50% bottom;
                        float: left; margin-bottom: 8px; border-left: #a4d5e3 1px solid; width: 777px;
                        border-bottom: #a4d5e3 1px solid;">
                        <h2 style="padding-right: 0px; padding-left: 8px; font-size: 14px; background: #e2f3fa;
                            padding-bottom: 0px; margin: 0px; color: #0066a9; line-height: 24px; padding-top: 0px;
                            border-bottom: #a4d5e3 1px solid">
                            区域层添加/修改</h2>
                        <div style="margin: 5px">
                            <table style="width: 705px; height: 46px">
                                <tr>
                                    <td style="width: 13%; height: 45px">
                                        仓库</td>
                                    <td style="width: 21%; height: 45px">
                                        <asp:DropDownList ID="ddlStock" DataTextField="STOCK_NAME" 
                                            DataValueField="STOCK_ID" runat="server" AutoPostBack="True" 
                                            onselectedindexchanged="ddlStock_SelectedIndexChanged">
                                        </asp:DropDownList></td>
                                    <td style="width: 13%; height: 45px">
                                        区域</td>
                                    <td style="width: 21%; height: 45px">
                                        <asp:DropDownList ID="ddlArea" DataTextField="AREA_NAME" DataValueField="AREA_ID" runat="server">
                                        </asp:DropDownList></td>
                                    <td style="width: 16%; height: 45px">
                                        层名称</td>
                                    <td style="width: 41%; height: 45px">
                                       <asp:TextBox ID="txtFloorName" runat="server" Width="103px" ValidationGroup="0"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFloorName"
                                           Display="Dynamic"  ErrorMessage="<img src=../images/false.gif  />不能为空"></asp:RequiredFieldValidator></td>
                                    <td style="width: 36%; height: 45px">
                                        &nbsp;<asp:Button ID="updateButton" runat="server" OnClick="updateButton_Click" Text="新  添"
                                            Width="87px" ValidationGroup="0" /></td>
                                </tr>
                                </table>
                        </div>
                    </div>
                    <div style="border-right: #a4d5e3 1px solid; border-top: #a4d5e3 1px solid; background: url(../images/content_bg1.gif) repeat-x 50% bottom;
                        float: left; margin-bottom: 8px; border-left: #a4d5e3 1px solid; width: 777px;
                        border-bottom: #a4d5e3 1px solid;">
                        
                        <div style="margin: 5px">
                            <table style="width: 705px; height: 46px">
                                <tr>
                                    <td style="width: 13%; height: 45px">
                                        仓库</td>
                                    <td style="width: 21%; height: 45px">
                                        <asp:DropDownList ID="ddlStockSearch" DataTextField="STOCK_NAME" 
                                            DataValueField="STOCK_ID" runat="server" AutoPostBack="True" 
                                            onselectedindexchanged="ddlStockSearch_SelectedIndexChanged" >
                                        </asp:DropDownList></td>
                                    <td style="width: 13%; height: 45px">
                                        区域</td>
                                    <td style="width: 21%; height: 45px">
                                        <asp:DropDownList ID="ddlAreaSearch" DataTextField="AREA_NAME" DataValueField="AREA_ID" runat="server">
                                        </asp:DropDownList></td>
                                    <td style="width: 16%; height: 45px">
                                        层名称</td>
                                    <td style="width: 41%; height: 45px">
                                       <asp:TextBox ID="txtFloorNameSearch" runat="server" Width="103px"></asp:TextBox>
                                    </td>
                                    <td style="width: 36%; height: 45px">
                                        &nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜  索" Width="87px" 
                                            onclick="btnSearch_Click" ValidationGroup="1" /></td>
                                </tr>
                                </table>
                        </div>
                    </div>
                  <asp:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" AllowPaging="True"
                    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                    Width="777" DataKeyNames="FloorID" onpageindexchanging="SearchResult_PageIndexChanging"  >
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <Columns>
                        <asp:TemplateField HeaderText="库位" SortExpression="T_STOCK_AREA.T_STOCK.STOCK_NAME">
                             <ItemTemplate>
                             <%# ((WX.WMS.DataModel.T_FLOOR)Container.DataItem).T_STOCK_AREA.T_STOCK.STOCK_NAME%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="区位" SortExpression="T_STOCK_AREA.AREA_NAME">
                             <ItemTemplate>
                             <%# ((WX.WMS.DataModel.T_FLOOR)Container.DataItem).T_STOCK_AREA.AREA_NAME%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:BoundField DataField="FloorName" HeaderText="层" SortExpression="FloorName" />
                        <asp:HyperLinkField DataNavigateUrlFields="FloorID" DataNavigateUrlFormatString="FloorManager.aspx?action=edit&amp;ID={0}"
                            HeaderText="编辑" Text="&lt;img border=0 src=../images/Edit.gif /&gt;">
                            <ItemStyle Width="30px" />
                        </asp:HyperLinkField>
                        <asp:HyperLinkField DataNavigateUrlFields="FloorID" DataNavigateUrlFormatString="FloorManager.aspx?action=del&amp;ID={0}"
                            HeaderText="删除" Text="&lt;img border=0 src=../images/Close.gif /&gt;">
                            <ItemStyle Width="30px" />
                        </asp:HyperLinkField>
                    </Columns>
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
                </asp:GridView>   
                </td>
            </tr>
            <tr>
                <td style="width: 32px">
                </td>
                <td style="width: 498px">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
